import { BasicColumn, FormSchema } from '@apps/antd-admin/src/components/Table';
import {render} from "@apps/antd-admin/src/hooks/render/renderUtils";
import { RenderType } from '@pkg/setting';
import Column from "ant-design-vue/es/vc-cascader/OptionList/Column";

export const columns: BasicColumn[] = [
  {
    title: '优惠券名称',
    dataIndex: 'couponTitle',
    width: 100,
  },
  {
    title: '面额',
    dataIndex: 'couponAmount',
    width: 100,
  },
  {
    title: '使用门槛',
    dataIndex: 'withAmount',
    width: 100,
  },
  {
    title: '用户名',
    dataIndex: 'userName',
    width: 100,
  },
  {
    title: '领取时间',
    dataIndex: 'userExpireBeginDate',
    width: 100,
  },
  {
    title: '核销时间',
    dataIndex: 'useTime',
    width: 100,
  }
];

export const writeOffFormSchema: FormSchema[] = [
  {
    field: 'couponCode',
    label: '券码',
    component: 'Input',
    required:true,
    colProps: { span: 12 },
  },

]

export const searchFormSchema: FormSchema[] = [
  {
    field: 'userName',
    label: '用户名',
    component: 'Input',
    colProps: { span: 12 },
  },
];
